{% extends 'mpa/common/base.html' %}
{% load static %}

{% block content %}
        <div class="wrapper">
            <div class="container">

                <!-- Page-Title -->
                <div class="row">
                    <div class="col-sm-12">
                        <div class="btn-group pull-right">
                            <button type="button" class="btn btn-primary dropdown-toggle waves-effect waves-light" data-toggle="dropdown" aria-expanded="false">Settings <span class="m-l-5"><i class="fa fa-cog"></i></span></button>
                            <ul class="dropdown-menu" role="menu">
                                <li><a href="#">Action</a></li>
                                <li><a href="#">Another action</a></li>
                                <li><a href="#">Something else here</a></li>
                                <li class="divider"></li>
                                <li><a href="#">Separated link</a></li>
                            </ul>
                        </div>
                        <h4 class="page-title">Gallery </h4>
                    </div>
                </div>


                <!-- SECTION FILTER
                ================================================== -->
                <div class="row">
                    <div class="col-lg-12 col-md-12 col-sm-12">
                        <div class="portfolioFilter">
                            <a href="#" data-filter="*" class="current">All</a>
                            <a href="#" data-filter=".webdesign">Web Design</a>
                            <a href="#" data-filter=".graphicdesign">Graphic Design</a>
                            <a href="#" data-filter=".illustrator">Illustrator</a>
                            <a href="#" data-filter=".photography">Photography</a>
                        </div>
                    </div>
                </div>

                <div class="row port">
                    <div class="portfolioContainer">
                        <div class="col-sm-6 col-lg-3 col-md-4 webdesign illustrator">
                            <div class="gal-detail thumb">
                                <a href="{% static 'mpa/images/gallery/1.jpg' %}" class="image-popup" title="Screenshot-1">
                                    <img src="{% static 'mpa/images/gallery/1.jpg' %}" class="thumb-img" alt="work-thumbnail">
                                </a>
                                <h4>Gallary Image</h4>
                            </div>
                        </div>

                        <div class="col-sm-6 col-lg-3 col-md-4 graphicdesign illustrator photography">
                            <div class="gal-detail thumb">
                                <a href="{% static 'mpa/images/gallery/2.jpg' %}" class="image-popup" title="Screenshot-2">
                                    <img src="{% static 'mpa/images/gallery/2.jpg' %}" class="thumb-img" alt="work-thumbnail">
                                </a>
                                <h4>Gallary Image</h4>
                            </div>
                        </div>

                        <div class="col-sm-6 col-lg-3 col-md-4 webdesign graphicdesign">
                            <div class="gal-detail thumb">
                                <a href="{% static 'mpa/images/gallery/3.jpg' %}" class="image-popup" title="Screenshot-3">
                                    <img src="{% static 'mpa/images/gallery/3.jpg' %}" class="thumb-img" alt="work-thumbnail">
                                </a>
                                <h4>Gallary Image</h4>
                            </div>
                        </div>

                        <div class="col-sm-6 col-lg-3 col-md-4 illustrator photography">
                            <div class="gal-detail thumb">
                                <a href="{% static 'mpa/images/gallery/4.jpg' %}" class="image-popup" title="Screenshot-4">
                                    <img src="{% static 'mpa/images/gallery/4.jpg' %}" class="thumb-img" alt="work-thumbnail">
                                </a>
                                <h4>Gallary Image</h4>
                            </div>
                        </div>

                        <div class="col-sm-6 col-lg-3 col-md-4 graphicdesign photography">
                            <div class="gal-detail thumb">
                                <a href="{% static 'mpa/images/gallery/5.jpg' %}" class="image-popup" title="Screenshot-5">
                                    <img src="{% static 'mpa/images/gallery/5.jpg' %}" class="thumb-img" alt="work-thumbnail">
                                </a>
                                <h4>Gallary Image</h4>
                            </div>
                        </div>

                        <div class="col-sm-6 col-lg-3 col-md-4 webdesign photography">
                            <div class="gal-detail thumb">
                                <a href="{% static 'mpa/images/gallery/6.jpg' %}" class="image-popup" title="Screenshot-6">
                                    <img src="{% static 'mpa/images/gallery/6.jpg' %}" class="thumb-img" alt="work-thumbnail">
                                </a>
                                <h4>Gallary Image</h4>
                            </div>
                        </div>

                        <div class="col-sm-6 col-lg-3 col-md-4 illustrator photography graphicdesign">
                            <div class="gal-detail thumb">
                                <a href="{% static 'mpa/images/gallery/7.jpg' %}" class="image-popup" title="Screenshot-7">
                                    <img src="{% static 'mpa/images/gallery/7.jpg' %}" class="thumb-img" alt="work-thumbnail">
                                </a>
                                <h4>Gallary Image</h4>
                            </div>
                        </div>

                        <div class="col-sm-6 col-lg-3 col-md-4 graphicdesign photography webdesign">
                            <div class="gal-detail thumb">
                                <a href="{% static 'mpa/images/gallery/8.jpg' %}" class="image-popup" title="Screenshot-8">
                                    <img src="{% static 'mpa/images/gallery/8.jpg' %}" class="thumb-img" alt="work-thumbnail">
                                </a>
                                <h4>Gallary Image</h4>
                            </div>
                        </div>

                        <div class="col-sm-6 col-lg-3 col-md-4 webdesign illustrator">
                            <div class="gal-detail thumb">
                                <a href="{% static 'mpa/images/gallery/9.jpg' %}" class="image-popup" title="Screenshot-9">
                                    <img src="{% static 'mpa/images/gallery/9.jpg' %}" class="thumb-img" alt="work-thumbnail">
                                </a>
                                <h4>Gallary Image</h4>
                            </div>
                        </div>

                        <div class="col-sm-6 col-lg-3 col-md-4 photography graphicdesign">
                            <div class="gal-detail thumb">
                                <a href="{% static 'mpa/images/gallery/10.jpg' %}" class="image-popup" title="Screenshot-10">
                                    <img src="{% static 'mpa/images/gallery/10.jpg' %}" class="thumb-img" alt="work-thumbnail">
                                </a>
                                <h4>Gallary Image</h4>
                            </div>
                        </div>

                        <div class="col-sm-6 col-lg-3 col-md-4 graphicdesign photography">
                            <div class="gal-detail thumb">
                                <a href="{% static 'mpa/images/gallery/11.jpg' %}" class="image-popup" title="Screenshot-11">
                                    <img src="{% static 'mpa/images/gallery/11.jpg' %}" class="thumb-img" alt="work-thumbnail">
                                </a>
                                <h4>Gallary Image</h4>
                            </div>
                        </div>

                        <div class="col-sm-6 col-lg-3 col-md-4 webdesign graphicdesign illustrator">
                            <div class="gal-detail thumb">
                                <a href="{% static 'mpa/images/gallery/12.jpg' %}" class="image-popup" title="Screenshot-12">
                                    <img src="{% static 'mpa/images/gallery/12.jpg' %}" class="thumb-img" alt="work-thumbnail">
                                </a>
                                <h4>Gallary Image</h4>
                            </div>
                        </div>



                    </div>
                </div> <!-- End row -->


                <!-- Footer -->
                <footer class="footer text-right">
                    <div class="container">
                        <div class="row">
                            <div class="col-xs-6">
                                2016 © Moltran.
                            </div>
                            <div class="col-xs-6">
                                <ul class="pull-right list-inline m-b-0">
                                    <li>
                                        <a href="#">About</a>
                                    </li>
                                    <li>
                                        <a href="#">Help</a>
                                    </li>
                                    <li>
                                        <a href="#">Contact</a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </footer>
                <!-- End Footer -->

            </div>
            <!-- end container -->

        </div>
        <!-- end wrapper -->

{% endblock %}

{% block static %}
    <script type="text/javascript" src="{% static 'mpa/plugins/isotope/dist/isotope.pkgd.min.js' %}"></script>
    <script type="text/javascript" src="{% static 'mpa/plugins/magnific-popup/dist/jquery.magnific-popup.min.js' %}"></script>

    <script type="text/javascript">
        $(window).load(function(){
            var $container = $('.portfolioContainer');
            $container.isotope({
                filter: '*',
                animationOptions: {
                    duration: 750,
                    easing: 'linear',
                    queue: false
                }
            });

            $('.portfolioFilter a').click(function(){
                $('.portfolioFilter .current').removeClass('current');
                $(this).addClass('current');

                var selector = $(this).attr('data-filter');
                $container.isotope({
                    filter: selector,
                    animationOptions: {
                        duration: 750,
                        easing: 'linear',
                        queue: false
                    }
                });
                return false;
            });
        });
        $(document).ready(function() {
            $('.image-popup').magnificPopup({
                type: 'image',
                closeOnContentClick: true,
                mainClass: 'mfp-fade',
                gallery: {
                    enabled: true,
                    navigateByImgClick: true,
                    preload: [0,1] // Will preload 0 - before current, and 1 after the current image
                }
            });
        });
    </script>
{% endblock %}